import request from '@/api/request'
//查看退单列表
function findBack(start, limit, data) {
    return request({
        url: `/lejuAdmin/orderReturn/findReturnApply/${start}/${limit}`,
        data,
        method: 'POST'
    })
}
//退单明细
function backInfo(id, data) {
    return request({
        url: `/lejuAdmin/orderReturn/${id}`,
        data,
    })
}
//同意退款
function agreeReturn(id, data) {
    return request({
        url: `/lejuAdmin/orderReturn/agreeApply/${id}`,
        data,
        method: 'POST'
    })
}
// 拒绝退款
function refuse(id, data) {
    return request({
        url: `/lejuAdmin/orderReturn/rejectApply/${id}`,
        data,
        method: 'POST'
    })
}
//确认收货
function reciveProduct(id, data) {
    return request({
        url: `/lejuAdmin/orderReturn/receiveProduct/${id}`,
        data,
        method: 'POST'
    })
}
export {
    findBack,
    backInfo,
    agreeReturn,
    refuse,
    reciveProduct
}